// main.cpp
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include "dataprocessor.h"

int main(int argc, char *argv[])
{
    QGuiApplication app(argc, argv);

    QQmlApplicationEngine engine;

    // 注册C++类型到QML
    qmlRegisterType<DataProcessor>("DataProcessor", 1, 0, "DataProcessor");

    engine.load(QUrl(QStringLiteral("test/Main.qml")));

    return app.exec();
}
